$def with(content)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
    <head>
        <meta http-equiv="content-type" content="text/html" charset="UTF-8"/>
        <meta content="no-cache" http-equiv="pragma"/>
        <link href="/static/css/0106666.css" type="text/css" rel="stylesheet"/>
        <link href="/static/css/calendar.css" type="text/css" rel="stylesheet"/>
        <script type="text/javascript" src="/static/js/jquery-1.4.2.min.js"></script>
        <script type="text/javascript" src="/static/js/cal.js"></script>
        <script type="text/javascript" src="/static/js/vticker.js"></script>
        $if content.gmap == '1':
            <script src="http://ditu.google.com/maps?file=api&amp;v=2&amp;hl=zh-CN"
                    type="text/javascript"></script>
        <link href="/static/favicon.ico" rel="SHORTCUT ICON"/>
        <title>$content.title</title>
        <style type="text/css">
            v\:* {
                behavior:url(#default#VML);
            }
        </style>
    </head>
    $if content.gmap == '1':
        <body onload="load()" onunload="GUnload()">
    $else:
        <body>
    <div class="center">
        <div id="header">
            <div id="hnav">
                $if context.user == 'anonymous':
                    <a href="/">首页</a>
                    <a href="/login">登录</a>
                    <a href="/signup">注册</a>
                $else:
                    <a href="/setting">$context.user的设置</a>
                    <a href="/logout"> 退出登录 </a>
            </div>
        </div>
        <div id="menu">
            $if context.user == 'anonymous':
                <a href="/">首页</a>
            $else:
                <a href="/map">地图</a>
                <a href="/news">新鲜事</a>
                <a href="/profile?uid=$context.id">我的66</a>
                <a href="/acts?act=all&uid=$context.id">活动列表</a>
            <a href="/buy">装备</a>
        </div>
        $if context.msg != None: 
            <div id="warning">
                $context.msg
            </div>
        <div style="clear: both"></div>
        <div id="content">
            $:content
        </div>
        <div style="clear: both"></div>
        <div id="footer">
            <span style="float: left">&copy; 2010 0106666.com, all rights reserved </span>
            <span style="float: right">
                <a href="/feedback">意见反馈</a>
                Powered by 
                <a href="http://webpy.org">Webpy</a>
                <a href="http://www.google.com">Google</a>
            </span>
        </div>
    </div>
    </body>
</html>
